Move all initial configuration to activity.setup