opening main activity bug