Adds basic edit functionality