Replaced jquery dialog to modal