added editostyles logic