fixing action segment when controllers are in subdirectories