Added function properties panel and save, save as, and cancel button