Dim background view when showing popup and Add option for setting custom view