This should not be here. Commands should not be invoked directly from the view. I think you need to create actions instead.