add view helper method to generate form inputs and labels
use the new view helper methods to remove duplicate props form