Made the styles more dynamic