add total and selected number + adjust layout