make controller work