in-progress commit refactoring view's form functions to helper class