optimize ui for collapse tag