updated graph code
fixed back button for picker