split app page and improve base.html