move common views to a partial