set layout and links