added logic and views for user points