Form styling generalized

Still a few bugs to fix.