update front end js and view