Data is now synchronized when the interface is opened. Some structure has been done for button events to the server