Added functional previous and next buttons on compare view