Refactor widget modal title into widgets controller