improve user details view functionality and add integration tests.