clean useless code and override styles