added simple & advanced mode toggle