Controller refactoring
Fix inline encrypt and sign
Separate encryptFrame from editor
Fix button visibility in editor