add log and modify style