Moving handle css api methods to API.js