promise actually not returning value, got sidebar working