small bug fixes involving main page