update of user functions and window.location