clean template activity, seperate grid code into own class