main frame search

implemented search capabilities in mainframe