modify style and add clear record fn