call saveLastTab upon entering background