fixed more bugs in element view