Modifications in the foreground

this PR is for a modifications in the foreground and add a new trigger in the closetab adding the foreground