move settings testing to the view