fixed api issues and main styles