coding switch activity by user (some tests are broken)