added logout and clear canvas