fixed urlParam and edit mode switch