fix hook calling
fix button attributes
make sure an array is given