refactoring the project and migrate it to netbeans