all functionalities working except edit