corrected all errors and added css properly to code