moved message function to view.py, moved dependent attributes to globs.py