move show side view code to a unified method