Added function for removing cursor line