added cancel button to forms with helper method