imported log with some fixes in styling code