moves canvas to seperated class