add frontend and ajax, comment out histogram gen