fixed errors full crud working