ad view functions