create search by keyword functionality and refactor of app selectors