added /edit/ view and logic