Renaming state variable to applicationState