Added new code which uses when inputs on focus or blur to hide the footer instead.