add functionality to form