refactor feeds users relation and mainjs a bit