finished deatil activity cursor refactoring