close() cleanup function. works for home, about and recipePage for now