public function display($tpl = null)
 {
     $this->app = JFactory::getApplication();
     $this->option = $this->app->input->get('option');
     $itemId = $this->app->input->getUint('id');
     $userId = JFactory::getUser()->get('id');
     $model = $this->getModel();
     // Initialise variables
     $this->item = $model->getItem($itemId, $userId);
     $this->state = $this->get('State');
     $this->params = $this->state->get('params');
     $notification = new Socialcommunity\Notification\Notification(JFactory::getDbo());
     $notification->load(array('id' => $itemId, 'user_id' => $userId));
     if ($notification->getId() and !$notification->isRead()) {
         $notification->updateStatus(Prism\Constants::READ);
     }
     $this->prepareDocument();
     parent::display($tpl);
 }