Added form clearing functionality.