Pretty buttons and minor js bugfixes