disable swipe to dismiss, fix a couple of null pointers