Main Activity now compatible with versions 8 and above of Android