Fixed creating global variables in views, updated dashboard to be able to receive messages from views