add user logic from view