Added option to disable back/forward buttons when rotate is false.