Add state bar and warning