rebuilding changed buttons