Some improvements and search bar

Some bug fixes for speed. Begun with search bar project.