added canvas event router, added color pallete