Fixed deprecation warnings

Atom deprecated a bunch of calls. Make sure to use the
alternative instead.