working on Resource and View