reorganize click event - combine search features used in posts