updated view logics.