div mainlogic