fix course search bugs and finish search related pages layout