adding default style logic