ensure when moving between tabs we don't crash and recover if possible

this should probably be a `return response.json(200, {status: "app was deleted"});` here rather than a plain return.