remove useless open input
change deprecated attribute
cleanup