Thanks for taking the time to help me.
Unfortunately I'm not sure if I'm allowed to link the site.
Basically there's a get_sidebar('Sidebar'); in index.php
There's also a searchcode.php which contains everything necessary to perform the Ajax search.
The ajax search replaces a part of the home page with the search results
Though, it still copies the sidebar from the index.php even though there's no get_sidebar(); in searchcode.php simply because of the Ajax search that 'consumes' a part of the homepage(or index.php).
So basically I'm looking for a way to remove the earlier get_sidebar('Sidebar); in the searchcode.php, though I'm not even sure if that's possible.
Thanks again for taking your time to help