Fixing view for messages widget and adding different document classes for message and deploy