added foreground to control method