Whoops

Calculation and front end codes were mixed while updating files from the github web frontend.