fixed conflict with startDialog