adding search bar, removing orientation horizontal, fixing and refactoring some code