Clean up machine view. Mainly use pre-rendered buttons
and remove useless code