fix addUser func, js refresh and close func
added scripts block to base template
added closeRefreshParent to register_success template