add period, group and some styling