add userEntity to presenter, add sample like detect
minor cs improvements