I don't know what the selected class does here, but it doesn't seem right. These are not actually tabs: they are buttons that invoke an action without changing the view, so I worry that this is the wrong thing.