Got fancy click buttons working. Only the user interface part though, all dynamic behaviour still needs to be scripted