implement pre sidebar and dasbor