cleaned up some code in question show page