enhancements for top search. moves _messages and _navigation to HAML.