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

fixes function calls