altered buttons to link correctly, display form submits, cleaned up code