Fixing bugs. Added text cursor