change html direction when changing css