add view functions