adding script functions to block and unblock users