handle button pushes in frontend with angular