major restructure of dash code and rework of styling