fixed resize bug, added some css styling