restore search and edit post