added footer, not working perfectly