added controller for editing boxes