added z-index for foreground and background canvas