added radio buttons but memory of previous entry not working properly