add COMMAND check in statusline mode function