organized angular app code a bit