added the code for the forms