Fixed pointer usage in UI