refaktor MainContentActivity. skilt ut tasks