styled form & added form functionality