deleted unnesesary code from entrance view