Make Back and Next buttons to work.