Got change layout dialog working