Add basic css and define some functions.