Use guidata module only if it is passed as an argument
Add ui module generated from qt creator ui file