a little workaround waiting to find a solution for jasmine being dumb
now passing elements instead of ids in controller and fixed a few bugs