fix layout bug and add update content