Fixed resource name not updated when saved in resurce dock

- by enforcing resource name been updated in "save" or "save as" action