moved view controller extensions to own class

most button functionality working