updated form styling and functionality