this code is just a model for all the controls