added form handling and minor styling fixes