added some form logic
early working submit and cancel button