added possibility to filter by foreign key, need strong refactor and cleaning in current state