fix bugs to align the front end with the api