Fixed bug with counter on view

more cleanup