create item control functions for lua