Fix settings api and success message