implement resource toggle