edit, new and view working