Only render the edit section if in edit mode