moved resident detail markup to partial