overload for element.controller
Merge pull request #2962 from 5angel/patch-1

overload for element.controller