add controller and resources demo