fixing a bug in share  or something... plus a small view bug