added empty data case, fix for corner cases, updated css