Fix buttons & Add logout & Add error handler for all requests