moved will_paginate view code out of code index partial. Only exists in index now