cleaned up checkbox code and params working