fixing spinner and editmode