add a reset view method