Shares modal control functions with the scope