Better gulp file and fix a few frontend bugs