update the percent_complete function in the clients controller