How to insert background-color with the condition of IF statement