fix hackClick
optimize regexp for restful