refactored class initialization
The locked button does now work again in confluence versions 5. A fix has been committed.