Adding new lines and rearranging dots