restructured angular application