Add properties to ctrl
Added metadata
tweaked the js hiding behavior for messages