implemented edit feature in psms