Update dialog form layout (still not good...)