begin refactoring ui framework to comply with latest polymer practices