Adding behavior to input buttons feature: if it doesn't has id use class