finish search stock without ajax and with some small bugs