cleared form after submit and improved action after completing all questions