Some changes to the pacet file and added some code to the ui