Added dynamic gui and layout.