added reset functionality for the forms, javacode improvements