adding support for itemController. thanks to Sir @kselden for help