edit main + hardware, and add css img flip