added some styles and added some logic to forms