loading resource on edit mode.