updated main activity with contextual menu