move map partial code to show view