changes on frontend and endpoints