added structure and bussineslogic for clientside