added new logic for contributions index page and separated some logic into contibution library
some messing around with view