delegate block to the view