added the status bar but does not work properly