converting profiledit into a modal window