added a method to get the currently active canvas