previous button working correctly on test