making voting work on PostViewCtrl controller