created the flag button for comments