added new get endpoint called edit