added rendering of canvas