add current view logic