before footer work