simplified the get selected threads controller
phpdoc fixes