Fixed the issues with GUI reflow. Added controls to sample.