Set the initial state of the application