Fixed AddEntryDialog function which was broken during merge

Issue: None

Reviewer: Jaira (post-commit)