added condition to sticky footer to improve behavior