Before changing MainActivity