basic activity logic implemented