Added preventText function

Created function to keep cursor from changing to a text cursor when
clicking on some elements