Refactoring. Added refresh and copy to clipboard commands.