expose model to view functions