fixed backend and  started working in fronted