ajax added to dealer hit btn and app.js refactored