Added auto refresh when option was made