not used packages and codes removed, code updated for latest npm packages