add search function to inbox part