moved code to controller / model
structre render working