fixed css path issues, refactored download