setLocation now respects triggerEvents boolean and passes the room the user is coming from as a third argument to thevent handler