add display mouse funtion