Frontend refs stuff