added badge and an option for hiding button when no scripts are run

Signed-off-by: Gerald <gera2ld@163.com>