small frontend optimizations