write, read, show buttons now working, some general clean-up