added class, separate code into blades. added css