Refactored code to display message & output of command. Added modal dialog to display command output. Large amounts of text in ouptut is causing cookie overlow error though.