Fix up the resource dependencies, add custom pad.css