resize fully implemented (introduce a bug with footer)