basic messy implemenation of angular frontend