fixed to fetch plot and tree rendering from the right place