refined AddSourceModelDialog logic, added constants