made main page counter boxes more flexible