added some css and fixed some bugs