made de buttons work with polling
added timer to the ticker lib