adds complete refresh posts function