generate scaffold for pins and fixes css issues