Changed the dismiss keyboard function from the background button to a tap gesture on the content container view and removed the background button.