Clear navigation after opening dialog, etc.