format correcting to ui components
completed debug