restore dir and remove moc and ui