splitting APP and CLIPBOARD to let the clipboard be globally accessible (may use refactoring to avoid the use of 'global')