add window unload event for logging off
chage path for production