Separated state rendering to seperate functions