added model for toggle directive.