Working on displaying pagenation and fixed respond_to bug