adding editing capability to the select page