add search cancel functionality, formatting