dynamically resize button as we do with the header
fix some templates
all tested and working !