Remove semicolon from the end of function definitions
Add waiting phase when the loading indicator is shown