fixing require command for buttons