query applications each time main screen is accessed