dynamically change footer position