Added css styling and other functionality