fix header, make button count live