update frontend code to new model