fix security and add dashboard