working foreground for canvas controls