removed css dependency and used inline styles