add previous and continue functionality, including hide and show