adding layout to  index and modelling bet types