refactor show separator