added logging in and styling