Refactor activites.
with xml files