bug fixed and add the css styles