Updated functions

Functions now hold values and each html form should be dynamically
created