clearing application state