Split user control functions to different file