added ajax view methods for Threads and Messages