Conditions AND Back/Next buttons not working