finish search action and recent posts and archive posts