Modified view for edit debnate and added edit funtion to space template