added counter & footer