fixes function calls
Merge pull request #1 from nifengle/view-callbacks

fixes function calls