add support for previous button