Handle page switching on server side now. Added socket to welcome.html