using angularJS and bootstrap to implement a switch button