Changed method for getting title