fix js and gui