* updated callback functionality to update front end