major bug fixes

pending: move out buttons from functions and sale options