added clear screen and move cursor function