changed the lua rendering call to be centralized to one file