adding basic edit functionality