added methods to get top canvas element