Fix #540 by introducing a method to reset the view state