Modified main activity for launching mac activity