code cleanup
splittet MainActivity into different parts