Fix for DFL-2307,  Add declaration stops working if clicked again.
Fix for DFL-2307,  Add declaration stops working if clicked again.

operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly,operasoftware/dragonfly