added dashboard layout and counts number of categories