Reorder code in markup method.