working on form modes