adding flex and position to reset