tracking view and function from sm-tracking project
