fix buttons, and fix file size storage