separated search from rest of code, css tweaks