Replaced 'target' by 'dialog' property in templates
Fixed notice's close timeout