Removed debug code
Added function to reload page on reconnect