implemented search and edit form