fixed ajax form submission and minor bug with percents not updating