improved search box and menu directives