touch event support added and some fixed some bugs