flat theme implementation