updated front end with some js