swap foreground/background
get layout and links settled