MainActivity handler fix