refactored code related to static box
separated plugin and plugin client code