added link to acces last page of a thread
fixed bug for avatar upload