move footer code to partial