#28 Added checks if activity was open for applications