Add suport to remove back/foregrounds
fixed UserInterface buttons and minor debug message errors