put ip class to the div