Fixed missing style references and removed bad try catch