main view cleaned. services js added