Fixdashviewandlogic

Updates made to the main view and javascript added to some actions.
Logic on some actions needs continued work.
Further AJAX is needed.