js hook to admin page