changes view posts function !
!!