modified controller and added tests, over 75% coverage on salesforce