fixing controller bug and adding template for questions
template for details