Made code in the ubuntu template more concise