Compatible Swipe to dismiss with API < 12

Fixed crashes
Fixed layout for settings