Moved user panel functions to class

Moved functions that communicate with user control panel into the class
library