Improved some variable names and log messages
Prevent additional state changes while a page is loading