sync back-end and front-end