Some input tweaks and UI utility functions