add functionality

also move css into its own file