Calling update when opening the application.