added beforeUnload message, if borrowed