refactored some code and improved user deletion of answers