main activity fix