make admin work better, add flag_type to form