fixed js switch between feed and directions