edit search and message form