add veiw and main process loop