added CSS and some functionality