Next Button doesn't work properly