transition back to previous path when closing settings