added some form functionality