Replaced javascript alert with jquery ui dialog for remove artifact