added css and fixed some bugs