making redirects to appropriate pages, statistics only show with admin