added restrict and dashboard