Fix modal header layout bug and add more responsiveness