moved the code for setting rights from dashbord to a separate file, x_rights_code.php