modal working with background