changes for correctly calling the main activity