Added slash command and logic for toggling visibility of main frame