Updating when gui is initialized to make loading smoother