Set up mode setting as two-way binding so it can be changed on the fly