refactoring questions controller