implemented api, fixed css