code for step 2 dashboard