Frontend performance tuning and bugfixes