search styling plus handling menu state