Merged styling changes and synched api on page load