added AJAX for ads state transfers and user rights changing