Added shuffle on iteration function and front end checkbox