add preview and AutoLayout buttons