Added entity for link Person and Scan. Fixed wrong ui behaviour.