moved css to stylesheet, cleaned up code a little