some bug fixing + gif display