set access to edit or main