Layout changes and preview now switches to right tab