added final functionality for user search and user dashboard