added search functionality (style fix needed)