cleanup and setup for home and work pages