refactor some Angular structure, removed some useless old py files, got id to pass in cookies to view