modified update to redirect_to topics_path to avoid bug: duplicate flash messages on show page