added style to and resource mapping