delete flag button implemented