done switching task between two layouts