made loader and preview configurable and fixed no stylesheet bug