deal with version warning in MainActivity