Fix pie closing animation & handle page change, pie css fixes