added apply window logic to home page, created helper function for application_active