begin refactor of kindler UI function