added test examples and functionality for buttons for all three views