Method for centering nodes created

-Nodes centered when clicked.