Re-implemented the sticky footer logic

Also implemented the open keyboard state