adding log for view