refactor so that main app is accessible by all other objects. some progress on actions