fix tab order for text formatting and preview not correct