Regulating buttons in views