Added badge icons, implemented pages functionality