updated gui
adjust background logic
adjust background logic