moves question limit code into functions for more DRY code. Trash and untrash still doesn't work