Added lastviews functionality