fix button behaviour in index_dev mode