add check upgrade to MainActibity