work on prev and next post