cleared interval when changing view