Using the cursor to align objects