added search functionality and edit answer functionality