Ported code to SharePoint 2013, altered layout to fit with VS2012 Add-In