added single support, and fixed pagination on frontpage