added functionality to angular form