Edited Main Template