minor utility functions for views and scrollviews