Code cleanup, put weights to rootscope, only show last 10 items on table