Attempt to move buttonPressed method to viewController