applying style sheets and implementing alternative layout