show & hide buttons + moved functions to index.js